"use strict";
// Just a mock data
Object.defineProperty(exports, "__esModule", { value: true });
exports.constantRoutes = [
    {
        path: '/redirect',
        component: 'Layout',
        meta: { hidden: true },
        children: [
            {
                path: '/redirect/:path*',
                component: 'views/redirect/index'
            }
        ]
    },
    {
        path: '/login',
        component: 'views/login/index',
        meta: { hidden: true }
    },
    {
        path: '/auth-redirect',
        component: 'views/login/auth-redirect',
        meta: { hidden: true }
    },
    {
        path: '/404',
        component: 'views/error-page/404',
        meta: { hidden: true }
    },
    {
        path: '/401',
        component: 'views/error-page/401',
        meta: { hidden: true }
    },
    {
        path: '',
        component: 'Layout',
        redirect: 'dashboard',
        children: [
            {
                path: 'dashboard',
                component: 'views/dashboard/index',
                name: 'Dashboard',
                meta: {
                    title: 'dashboard',
                    icon: 'dashboard',
                    affix: true
                }
            }
        ]
    },
    {
        path: '/documentation',
        component: 'Layout',
        children: [
            {
                path: 'index',
                component: 'views/documentation/index',
                name: 'Documentation',
                meta: {
                    title: 'documentation',
                    icon: 'documentation',
                    affix: true
                }
            }
        ]
    },
    {
        path: '/guide',
        component: 'Layout',
        redirect: '/guide/index',
        children: [
            {
                path: 'index',
                component: 'views/guide/index',
                name: 'Guide',
                meta: {
                    title: 'guide',
                    icon: 'guide',
                    noCache: true
                }
            }
        ]
    }
];
exports.asyncRoutes = [
    {
        path: '/permission',
        component: 'Layout',
        redirect: '/permission/index',
        meta: {
            title: 'permission',
            icon: 'lock',
            roles: ['admin', 'editor'],
            alwaysShow: true
        },
        children: [
            {
                path: 'page',
                component: 'views/permission/page',
                name: 'PagePermission',
                meta: {
                    title: 'pagePermission',
                    roles: ['admin']
                }
            },
            {
                path: 'directive',
                component: 'views/permission/directive',
                name: 'DirectivePermission',
                meta: {
                    title: 'directivePermission'
                }
            },
            {
                path: 'role',
                component: 'views/permission/role',
                name: 'RolePermission',
                meta: {
                    title: 'rolePermission',
                    roles: ['admin']
                }
            }
        ]
    },
    {
        path: '/icon',
        component: 'Layout',
        children: [
            {
                path: 'index',
                component: 'views/icons/index',
                name: 'Icons',
                meta: {
                    title: 'icons',
                    icon: 'icon',
                    noCache: true
                }
            }
        ]
    },
    {
        path: '/components',
        component: 'Layout',
        redirect: 'noredirect',
        name: 'ComponentDemo',
        meta: {
            title: 'components',
            icon: 'component'
        },
        children: [
            {
                path: 'tinymce',
                component: 'views/components-demo/tinymce',
                name: 'TinymceDemo',
                meta: { title: 'tinymce' }
            },
            {
                path: 'markdown',
                component: 'views/components-demo/markdown',
                name: 'MarkdownDemo',
                meta: { title: 'markdown' }
            },
            {
                path: 'json-editor',
                component: 'views/components-demo/json-editor',
                name: 'JsonEditorDemo',
                meta: { title: 'jsonEditor' }
            },
            {
                path: 'splitpane',
                component: 'views/components-demo/splitpane',
                name: 'SplitpaneDemo',
                meta: { title: 'splitPane' }
            },
            {
                path: 'avatar-upload',
                component: 'views/components-demo/avatar-upload',
                name: 'AvatarUploadDemo',
                meta: { title: 'avatarUpload' }
            },
            {
                path: 'dropzone',
                component: 'views/components-demo/dropzone',
                name: 'DropzoneDemo',
                meta: { title: 'dropzone' }
            },
            {
                path: 'sticky',
                component: 'views/components-demo/sticky',
                name: 'StickyDemo',
                meta: { title: 'sticky' }
            },
            {
                path: 'count-to',
                component: 'views/components-demo/count-to',
                name: 'CountToDemo',
                meta: { title: 'countTo' }
            },
            {
                path: 'mixin',
                component: 'views/components-demo/mixin',
                name: 'ComponentMixinDemo',
                meta: { title: 'componentMixin' }
            },
            {
                path: 'back-to-top',
                component: 'views/components-demo/back-to-top',
                name: 'BackToTopDemo',
                meta: { title: 'backToTop' }
            },
            {
                path: 'draggable-dialog',
                component: 'views/components-demo/draggable-dialog',
                name: 'DraggableDialogDemo',
                meta: { title: 'draggableDialog' }
            },
            {
                path: 'draggable-select',
                component: 'views/components-demo/draggable-select',
                name: 'DraggableSelectDemo',
                meta: { title: 'draggableSelect' }
            },
            {
                path: 'draggable-list',
                component: 'views/components-demo/draggable-list',
                name: 'DraggableListDemo',
                meta: { title: 'draggableList' }
            },
            {
                path: 'draggable-kanban',
                component: 'views/components-demo/draggable-kanban',
                name: 'DraggableKanbanDemo',
                meta: { title: 'draggableKanban' }
            }
        ]
    },
    {
        path: '/charts',
        component: 'Layout',
        redirect: 'noredirect',
        name: 'Charts',
        meta: {
            title: 'charts',
            icon: 'chart'
        },
        children: [
            {
                path: 'bar-chart',
                component: 'views/charts/bar-chart',
                name: 'BarChartDemo',
                meta: {
                    title: 'barChart',
                    noCache: true
                }
            },
            {
                path: 'line-chart',
                component: 'views/charts/line-chart',
                name: 'LineChartDemo',
                meta: {
                    title: 'lineChart',
                    noCache: true
                }
            },
            {
                path: 'mixedchart',
                component: 'views/charts/mixed-chart',
                name: 'MixedChartDemo',
                meta: {
                    title: 'mixedChart',
                    noCache: true
                }
            }
        ]
    },
    {
        path: '/nested',
        component: 'Layout',
        redirect: '/nested/menu1/menu1-1',
        name: 'Nested',
        meta: {
            title: 'nested',
            icon: 'nested'
        },
        children: [
            {
                path: 'menu1',
                component: 'views/nested/menu1/index',
                redirect: '/nested/menu1/menu1-1',
                name: 'Menu1',
                meta: { title: 'menu1' },
                children: [
                    {
                        path: 'menu1-1',
                        component: 'views/nested/menu1/menu1-1/index',
                        name: 'Menu1-1',
                        meta: { title: 'menu1-1' }
                    },
                    {
                        path: 'menu1-2',
                        component: 'views/nested/menu1/menu1-2/index',
                        name: 'Menu1-2',
                        redirect: '/nested/menu1/menu1-2/menu1-2-1',
                        meta: { title: 'menu1-2' },
                        children: [
                            {
                                path: 'menu1-2-1',
                                component: 'views/nested/menu1/menu1-2/menu1-2-1/index',
                                name: 'Menu1-2-1',
                                meta: { title: 'menu1-2-1' }
                            },
                            {
                                path: 'menu1-2-2',
                                component: 'views/nested/menu1/menu1-2/menu1-2-2/index',
                                name: 'Menu1-2-2',
                                meta: { title: 'menu1-2-2' }
                            }
                        ]
                    },
                    {
                        path: 'menu1-3',
                        component: 'views/nested/menu1/menu1-3/index',
                        name: 'Menu1-3',
                        meta: { title: 'menu1-3' }
                    }
                ]
            },
            {
                path: 'menu2',
                name: 'Menu2',
                component: 'views/nested/menu2/index',
                meta: { title: 'menu2' }
            }
        ]
    },
    {
        path: '/table',
        component: 'Layout',
        redirect: '/table/complex-table',
        name: 'Table',
        meta: {
            title: 'table',
            icon: 'table'
        },
        children: [
            {
                path: 'dynamic-table',
                component: 'views/table/dynamic-table/index',
                name: 'DynamicTable',
                meta: { title: 'dynamicTable' }
            },
            {
                path: 'draggable-table',
                component: 'views/table/draggable-table',
                name: 'DraggableTable',
                meta: { title: 'draggableTable' }
            },
            {
                path: 'inline-edit-table',
                component: 'views/table/inline-edit-table',
                name: 'InlineEditTable',
                meta: { title: 'inlineEditTable' }
            },
            {
                path: 'complex-table',
                component: 'views/table/complex-table',
                name: 'ComplexTable',
                meta: { title: 'complexTable' }
            }
        ]
    },
    {
        path: '/example',
        component: 'Layout',
        redirect: '/example/list',
        name: 'Example',
        meta: {
            title: 'example',
            icon: 'example'
        },
        children: [
            {
                path: 'create',
                component: 'views/example/create',
                name: 'CreateArticle',
                meta: {
                    title: 'createArticle',
                    icon: 'edit'
                }
            },
            {
                path: 'edit/:id(\\d+)',
                component: 'views/example/edit',
                name: 'EditArticle',
                meta: {
                    title: 'editArticle',
                    noCache: true,
                    activeMenu: '/example/list',
                    hidden: true
                }
            },
            {
                path: 'list',
                component: 'views/example/list',
                name: 'ArticleList',
                meta: {
                    title: 'articleList',
                    icon: 'list'
                }
            }
        ]
    },
    {
        path: '/tab',
        component: 'Layout',
        children: [
            {
                path: 'index',
                component: 'views/tab/index',
                name: 'Tab',
                meta: {
                    title: 'tab',
                    icon: 'tab'
                }
            }
        ]
    },
    {
        path: '/error',
        component: 'Layout',
        redirect: 'noredirect',
        name: 'ErrorPages',
        meta: {
            title: 'errorPages',
            icon: '404'
        },
        children: [
            {
                path: '401',
                component: 'views/error-page/401',
                name: 'Page401',
                meta: {
                    title: 'page401',
                    noCache: true
                }
            },
            {
                path: '404',
                component: 'views/error-page/404',
                name: 'Page404',
                meta: {
                    title: 'page404',
                    noCache: true
                }
            }
        ]
    },
    {
        path: '/error-log',
        component: 'Layout',
        redirect: 'noredirect',
        children: [
            {
                path: 'log',
                component: 'views/error-log/index',
                name: 'ErrorLog',
                meta: {
                    title: 'errorLog',
                    icon: 'bug'
                }
            }
        ]
    },
    {
        path: '/excel',
        component: 'Layout',
        redirect: '/excel/export-excel',
        name: 'Excel',
        meta: {
            title: 'excel',
            icon: 'excel'
        },
        children: [
            {
                path: 'export-excel',
                component: 'views/excel/export-excel',
                name: 'ExportExcel',
                meta: { title: 'exportExcel' }
            },
            {
                path: 'export-selected-excel',
                component: 'views/excel/select-excell',
                name: 'SelectExcel',
                meta: { title: 'selectExcel' }
            },
            {
                path: 'export-merge-header',
                component: 'views/excel/merge-header',
                name: 'MergeHeader',
                meta: { title: 'mergeHeader' }
            },
            {
                path: 'upload-excel',
                component: 'views/excel/upload-excel',
                name: 'UploadExcel',
                meta: { title: 'uploadExcel' }
            }
        ]
    },
    {
        path: '/zip',
        component: 'Layout',
        redirect: '/zip/download',
        meta: {
            title: 'zip',
            icon: 'zip',
            alwaysShow: true
        },
        children: [
            {
                path: 'download',
                component: 'views/zip/index',
                name: 'ExportZip',
                meta: { title: 'exportZip' }
            }
        ]
    },
    {
        path: '/pdf',
        component: 'Layout',
        redirect: '/pdf/index',
        children: [
            {
                path: 'index',
                component: 'views/pdf/index',
                name: 'PDF',
                meta: {
                    title: 'pdf',
                    icon: 'pdf'
                }
            }
        ]
    },
    {
        path: '/pdf-download-example',
        component: 'views/pdf/download',
        meta: { hidden: true }
    },
    {
        path: '/theme',
        component: 'Layout',
        redirect: 'noredirect',
        children: [
            {
                path: 'index',
                component: 'views/theme/index',
                name: 'Theme',
                meta: {
                    title: 'theme',
                    icon: 'theme'
                }
            }
        ]
    },
    {
        path: '/clipboard',
        component: 'Layout',
        redirect: 'noredirect',
        children: [
            {
                path: 'index',
                component: 'views/clipboard/index',
                name: 'Clipboard',
                meta: {
                    title: 'clipboard',
                    icon: 'clipboard'
                }
            }
        ]
    },
    {
        path: '/i18n',
        component: 'Layout',
        children: [
            {
                path: 'index',
                component: 'views/i18n-demo/index',
                name: 'I18n',
                meta: {
                    title: 'i18n',
                    icon: 'international'
                }
            }
        ]
    },
    {
        path: 'external-link',
        component: 'Layout',
        children: [
            {
                path: 'https://github.com/Armour/vue-typescript-admin-template',
                meta: {
                    title: 'externalLink',
                    icon: 'link'
                }
            }
        ]
    },
    {
        path: '*',
        redirect: '/404',
        meta: { hidden: true }
    }
];
